using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using XLua;

public class YAnimationEventBinder : MonoBehaviour
{
    [LuaCallCSharp]
    public Action switchAction; 
    public void switchEvent()
    {
        switchAction?.Invoke();
    }

    private void OnDestroy()
    {
        switchAction = null;
    }
}
